<?php foreach ($data['menu_json'] as $module):
	if(SysAccounts::checkPermission($module, true)): ?>
		<div class="box-menu" id="menu-box-<?php echo $module['name']?>">
		<div class="title" title="<?php echo __('collapse',null,'menu')?>"><?php echo __('module_'.$module['name'],null,'menu')?></div>
			<div class="content">
<?php			
				foreach($module['actions'] as $key=>$action): 
					if(SysAccounts::checkPermission($action)):?>
						<a <?php echo isset($action['target'])?('target="'.$action['target'].'"'):''?> href="<?php echo sfConfig::get('app_prefix'),'/',$sf_user->getCulture(), $action['name']?>"><?php echo __('module_'.$module['name'].'_action_'.$key,null,'menu')?></a><br/>
<?php				endif;
				endforeach;?>
			</div>
		</div>
<?php 
	endif;
endforeach;?>